import request from '@/utils/request'
// 补卡
export function record(query) {
  return request({
    url: '/system/record',
    method: 'post',
    params: query
  })
}
// 获取列表
export function list(query) {
  return request({
    url: '/system/record/list',
    method: 'get',
    params: query
  })
}

// 查询详情
export function detail(query) {
  return request({
    url: '/system/record/attendance',
    method: 'get',
    params: query
  })
}

// 查询排班
export function getSchedule() {
  return request({
    url: '/system/schedule/getWorkingSchedule',
    method: 'get',
  })
}

// 添加排班
export function addSchedule(data) {
  return request({
    url: '/system/schedule',
    method: 'put',
    data: data
  })
}

